/* -------------------------
 * Denise Pollock
 * Homework 3
 * 7/8/14
 * testing whoseTurn function
 * -------------------------
 */

#include "dominion.h"
#include "dominion_helpers.h"
#include <string.h>
#include <stdio.h>
#include <assert.h>
#include "rngs.h"

int main() 
{
  struct gameState state;
  int numPlayer = 2;
  int p, r, test;
  int seed = 1000;
  int k[10] = {adventurer, council_room, feast, gardens, mine, remodel, smithy, village, baron, great_hall};

  memset(&state, 23, sizeof(struct gameState));
  r = initializeGame(numPlayer, k, seed, &state);

  printf("Testing whoseTurn\n");

  for (p = 0; p < 5; p++){
	  state.whoseTurn = p;
	  test = whoseTurn(&state);
	  assert (test == p);	  
  }
  printf("All tests passed\n");

}
